<?php

    /*
     *
     *  This file is part of ValerieEngine
     *  ValerieEngine is free software: you can redistribute it and/or modify
     *  it under the terms of the GNU General Public License as published by
     *  the Free Software Foundation, either version 3 of the License, or
     *  (at your option) any later version.
     *
     *  ValerieEngine is distributed in the hope that it will be useful,
     *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *  GNU General Public License for more details.
     *
     *  You should have received a copy of the GNU General Public License
     *  along with ValerieEngine.  If not, see <http://www.gnu.org/licenses/>.
     *
     */
	
    define ('ERROR_REPORTING_LEVEL',E_ALL^E_NOTICE);
    define ('SITE_ENCODING','UTF-8');

    @header("Content-Type: text/html; charset=".SITE_ENCODING);

    error_reporting(ERROR_REPORTING_LEVEL);

    define('ROOT', $_SERVER['DOCUMENT_ROOT']);
    define('LOGS_PATH', ROOT . '/logs/');
    define('INCLUDE_PATH', ROOT . '/include/');
    define('CORE_PATH', ROOT . '/core/');
    define('MODELS_PATH', CORE_PATH . '/models/');
    define('MODULES_PATH', ROOT . '/modules/');
    define('FILES_PATH', ROOT . '/files/');

    define('SITE', $_SERVER['SERVER_NAME']);
    define('CSS_URL', SITE . '/static/css/');
    define('JS_URL', SITE . '/static/js/');
    define('IMAGES_URL', SITE . '/static/images/');



    if (version_compare(phpversion(), '5.3.0', '<') == true) {
        die('Need version for PHP 5.3.0 and higher');
    }

    include_once INCLUDE_PATH . 'db_conf.php';
    include_once INCLUDE_PATH . 'autoload.php';
	
	
?>